package cn.bj.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bj.beans.Yxjd_rotate;
import cn.bj.dao.Yxjd_rotateMapper;

@Service
public class YxjdRotateService {
	@Autowired
	Yxjd_rotateMapper yxjd_rotateMapper;

	// 查询所有
	public List<Yxjd_rotate> selectAllYxjdRotate() {
		return yxjd_rotateMapper.selectByExample(null);
	}

	// 新增
	public int insertYxjdRotate(Yxjd_rotate yxjdr) {
		return yxjd_rotateMapper.insert(yxjdr);
	}

	// 删除
	public int deleteYxjdRotate(Integer id) {
		return yxjd_rotateMapper.deleteByPrimaryKey(id);
	}

	// 查询单个
	public Yxjd_rotate selectById(Integer id) {
		return yxjd_rotateMapper.selectByPrimaryKey(id);
	}

	// 修改
	public int updateYxjdR(Yxjd_rotate yxjdR) {
		return yxjd_rotateMapper.updateByPrimaryKey(yxjdR);
	}

}
